package com.ycy.dubbo;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;

@Configuration
@SpringBootApplication

//可以使用配置文件的方式
//@ImportResource(locations = {"classpath:consumer-dubbo.xml"})

//@EnableDiscoveryClient
@EnableDubbo(scanBasePackages = {"com.ycy.dubbo.provider"})

public class ConsumerClientSpringApplication {

  public static void main(String[] args) {
    SpringApplication.run(ConsumerClientSpringApplication.class, args);
  }

}
